While connecting, the item should read "Turn Off", not "Connect".
To do so, change the meaning of isActive() to be really "not isOff()"
https://bugzilla.gnome.org/show_bug.cgi?id=706262
if (this._activeConnection == null)
return false;
- return this._activeConnection.state == NetworkManager.ActiveConnectionState.ACTIVATED;
+ return this._activeConnection.state <= NetworkManager.ActiveConnectionState.ACTIVATED;
},
_sync: function() {
if (this._activeConnection == null)
return false;
- return this._activeConnection.vpn_state == NetworkManager.VPNConnectionState.ACTIVATED;
+ return this._activeConnection.vpn_state != NetworkManager.VPNConnectionState.DISCONNECTED;
},
_getStatus: function() {